
export default {
    inserted(el, bindings) {
        const arr = JSON.parse(localStorage.getItem("permission"))
        const has = bindings.value
        const hasPermission = arr.includes(has)
        if (!hasPermission) {
                el.style.display = "none"
                 setTimeout(() => {
                el.parentNode.removeChild(el)
            }, 0);
        }
    }
}